# -*- coding: utf-8 -*-

'''
本地环境配置
/*PHP是世界上最好的语言*/
'''

header ={

        "Access-Control-Request-Headers": "accesstoken,verifyauthtoken",
        "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
        "Origin": "http://m.yangkeduo.com",
        "Referer": "http://m.yangkeduo.com/search_result.html?search_key=%E7%89%9B%E8%82%89%E5%B9%B2",
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0",

}


# 安全签名
SECRET_KEY = '512113'

# URL地址管理

local_domain = 'http://pddtoolbox.penglingcheng.com'

pinduoduo_api = 'http://apiv3.yangkeduo.com'

pinduoduo_domain = 'http://m.yangkeduo.com'

domain_url = {

    # 拼多多获取参数接口

    'other':{

        # 拼多多获取参数地址
        'pdd_params_url':pinduoduo_domain + '/search_result.html?search_key=',
        # 拼多多商品展示地址
        'pdd_shop_url':pinduoduo_domain + '/goods.html?goods_id={0}',
        # 拼多多获取评价标签地址
        'pdd_tag_url': pinduoduo_domain + '/goods_comments.html?goods_id=',
        # 拼多多获取评价信息地址
        'pdd_comments_url':pinduoduo_domain+'/proxy/api/reviews/{goodsid}/list?page={page}&size=10&enable_video=1&enable_group_review=1&pdduid=0'

    },

    # 拼多多网址请求接口

    'pinduoduo':{

        # 拼多多商品详情地址
        'pdd_detail_url':pinduoduo_api + '/search?',
        #拼多多建议分词地址
        'pdd_keyword_url':pinduoduo_api + '/search_suggest?query=',
    },

    'domain':{

        # 任务领取接口
        'test_task_url':local_domain + '/pow/api/index/getTask',
        # 返回商品信息接口
        'test_goods_url':local_domain +'/pow/index.php/api/index/insertGoods',
        # 返回店铺信息接口
        'test_shop_url':local_domain + '/pow/api/index/insterShop',
        # 签名测试接口
        'test_sign_url':local_domain +'/pow/api/index/sign',
        # 上传关键词接口
        'test_keyword_url':local_domain +'/pow/index.php/api/index/insterKeywords',
        # 评价标价返还接口
        'test_tag_url':local_domain +'/pow/api/index/insertGoodsEvaluationLabel',
        # 评价明细返还接口
        'test_detail_url':local_domain + '/pow/api/index/insertGoodsSku',
        #评价明细失败接口
        'test_failComm_url':local_domain + '/pow/api/index/updateStatusFail',
        # 任务上传成功接口
        'test_success_url':local_domain +'/pow/api/index/updateStatusSuccess',
        #任务上传失败接口
        'test_fail_url':local_domain +'/pow/api/index/updateStatusFail'

    }
}


# url列表
urls = [

    'https://www.baidu.com/',
    'https://www.sina.com.cn/',
    'http://www.sohu.com/',
    'https://www.qq.com/',
    'https://www.163.com/',
    'https://www.taobao.com/'

]



